/*
* @Author: suddev
* @Date:   2017-08-14 19:33:52
* @Last Modified by:   SUDDEV
* @Last Modified time: 2017-08-23 18:47:35
*/

'use strict';

var _info = {
    // 用户登陆
    input_info : function(customerInfo,resolve,reject){
        _tools.request({
            url     : _tools.getServerUrl('/info/input_info.do'),
            data    : customerInfo,
            method  : 'POST',
            success : resolve,
            error   : reject
        })
    },
    input_search : function(customerInfo,resolve,reject){
        _tools.request({
            url     : _tools.getServerUrl('/info/quick_search_info.do'),
            data    : customerInfo,
            method  : 'POST',
            success : resolve,
            error   : reject
        })
    },
    input_update : function(customerInfo,resolve,reject){
        _tools.request({
            url     : _tools.getServerUrl('/info/update_info.do'),
            data    : customerInfo,
            method  : 'POST',
            success : resolve,
            error   : reject
        })
    },
    input_delete : function(customerInfo,resolve,reject){
        _tools.request({
            url     : _tools.getServerUrl('/info/delete_info.do'),
            data    : customerInfo,
            method  : 'POST',
            success : resolve,
            error   : reject
        })
    },
    get_note    : function(resolve,reject){
        _tools.request({
            url     : _tools.getServerUrl('/info/get_note.do'),
            method  : 'GET',
            success : resolve,
            error   : reject
        })
    }
};